import { RouteRecordRaw, createRouter, createWebHistory } from 'vue-router'
const routes: Array<RouteRecordRaw> = [
   {
      path: "/",
      name: "Home",
      redirect: "/index",
      component: () => import("../views/home/HomeView.vue"),
      children:[]
   },
   {
      path: "/login",
      name: "Login",
      component: () => import("../views/LoginView.vue")
   },
   {
      path: "/:pathMatch(.*)*",
      name: "404",
      component: () => import("../views/404.vue")
   }

]

const router = createRouter({
   history: createWebHistory(),
   routes
})

export default router;